package com.yuntai.pms.model.entity.handler;

import com.alibaba.fastjson.JSON;
import com.yuntai.pms.model.vo.handler.MethodRegisterVo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 杨训亮
 * @version V1.0
 * @Title: openapi
 * @Package com.yuntai.openapi.platform.model.entity.handler
 * @Description: Group与Server结合体
 * @date 2017/8/1 14:15
 */
public class GroupServerInfo implements Serializable {
	
	private static final long serialVersionUID = 992960492829402928L;
	
	private String group;
    private String serverName;
    private List<MethodRegisterVo> methods = new ArrayList<MethodRegisterVo>();

    public GroupServerInfo() {}

    public GroupServerInfo(String group, String serverName) {
        this.group = group;
        this.serverName = serverName;
    }

    public List<MethodRegisterVo> getMethods() {
        return methods;
    }

    public void setMethods(List<MethodRegisterVo> methods) {
        this.methods = methods;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getServerName() {
        return serverName;
    }

    public void setServerName(String serverName) {
        this.serverName = serverName;
    }
    
    @Override
	public String toString(){
		return JSON.toJSONString(this);
	}
}
